﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LotteryVote.Entity.Commission
{
    public class CommissionGroupEqualityComparer : EqualityComparer<CommissionGroup>
    {
        public override bool Equals(CommissionGroup x, CommissionGroup y)
        {
            return x.GroupId == y.GroupId;
        }

        public override int GetHashCode(CommissionGroup obj)
        {
            return obj.GroupId.GetHashCode();
        }
    }
}
